kind: ConfigMap
apiVersion: v1
metadata:
  name: filebeat-config
  namespace: ${namespace}
data:
  filebeat.yml: |
    filebeat.inputs:
      - type: log
        enabled: true
        paths:
          - /data/log/*/*.log
        json.keys_under_root: true
        json.overwrite_keys: true
    fields:
      ns: ${'$'}{namespace}
      app: ${'$'}{moduleName}
    output.logstash:
      hosts: ["${logstashAddr}"]